package com.zhangkunhao.notes.pool;


/**
 * 向外提供可扩容的连接池
 *
 * @author 20642
 */
public class PoolManager {
    private PoolManager() {
    }

    /**
     * 静态内部类单例模式
     */
    private static class CreatePool {
        private static final MyPoolImpl MY_POOL = new MyPoolImpl();
    }

    public static MyPool getInstance() {
        return CreatePool.MY_POOL;
    }

}